#include <iostream>
#include "Circle.h"
#include "Rectangle.h"
#include <typeinfo>
using namespace std;

void display(Geometric& g){
    cout << "Area: " << g.getArea() << endl
    << "Perimeter: " << g.getPerimeter() << endl;
    Geometric * p = (Geometric *)&g;
    Circle* c = dynamic_cast<Circle*>(p);
    Rectangle* r = dynamic_cast<Rectangle*>(p);
    if(c){
        cout << c->getRadius() << endl;
        cout << c->getDiameter() << endl;
    }
    if(r){
        cout << r->getWidth() << endl;
        cout << r->getHeight() << endl;
    }
}

int main() {
    Circle c(6);
    Rectangle r(2,3);
    long long int a = 9;
    string s = "111";
    char ch = '1';
    cout << typeid(ch).name() << endl;
    // display(c);
    // display(r);
    return 0;
}